package designpattern.Template;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cyt
 * @create 2020-08-16 12:05
 */
public class LocalSetting extends AbstractSetting {
    private Map<String, String> cache = new HashMap<>();

    @Override
    protected String lookupCache(String key) {
        return cache.get(key);
    }

    @Override
    protected void putIntoCache(String key, String value) {
        cache.put(key, value);
    }
}
